<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class FsUserTask extends Model
{
    protected $connection = 'mysql';

    protected $fillable = ['task_id', 'fs_user_id', 'carry_user_id', 'status', 'call_time'];

    public $timestamps = false;

    public function fsUsers(){
        return $this->hasMany(FsUser::class);
    }

    public function user(){
        return $this->hasOne(User::class,'id','carry_user_id');
    }
}
